Product Conversion
Request to be POSTed to uri : /NorenWClientTP/ProductConversion
Request Details :
Json Fields | Possible value | Description |
---|---|---|
jData* | Should send json object with fields in below list | |
jKey* | Key Obtained on login success. |
Json Fields | Possible value | Description |
---|---|---|
exch* | Exchange | |
tsym* | Unique id of contract on which order was placed. Can’t be modified, must be the same as that of original order. (use url encoding to avoid special char error for symbols like M&M) | |
qty* | Quantity to be converted. | |
uid* | User id of the logged in user. | |
actid* | Account id | |
prd* | Product to which the user wants to convert position. | |
prevprd* | Original product of the position. | |
trantype* | Transaction type | |
postype* | Day / CF | Converting Day or Carry forward position |
ordersource | MOB | For Logging |
Response Details :
Response data will be in json format with below fields.
Json Fields | Possible value | Description |
---|---|---|
stat | Ok or Not_Ok | Position conversion success or failure indication. |
emsg | This will be present only if Position conversion fails. |
Sample Success Response :
{
"request_time":"10:52:12 02-06-2020",
"stat":"Ok"
}
Sample Failure Response :
{
"stat":"Not_Ok",
"emsg":"Invalid Input : Invalid Position Type"
}